package org.example.lotterysystem.common.errorcode;

public interface ServiceErrorCodeConstants {
    //这里解释一下,下面这些new出的对象,当作常量来处理,起到了枚举的效果.


    //定义人员错误码
    ErrorCode REGISTER_INFO_EMPTY=new ErrorCode(100,"参数为空");

    ErrorCode EMAIL_FORMAT_ERROR=new ErrorCode(101,"邮箱格式错误");

    ErrorCode PASSWORD_FORMAT_ERROR=new ErrorCode(102,"密码格式错误");

    ErrorCode IDENTITY_IS_EMPTY=new ErrorCode(103,"用户身份为空");

    ErrorCode PHONE_NUMBER_FORMAT_ERROR=new ErrorCode(104,"手机号格式错误");
    ErrorCode PASSWORD_IS_EMPTY=new ErrorCode(105,"密码为空");
    ErrorCode EMAIL_USED=new ErrorCode(106,"邮箱已经被使用");
    ErrorCode PHONE_NUMBER_USED=new ErrorCode(107,"手机号已经被使用");
    ErrorCode USER_LOGIN_NOT_EXISTS=new ErrorCode(108,"用户登录方式不存在");
    ErrorCode USER_MSG_IS_EMPTY=new ErrorCode(109,"用户信息不存在");
    ErrorCode IDENTITY_ERROR=new ErrorCode(110,"身份错误");
    ErrorCode PASSWORD_ERROR=new ErrorCode(111,"密码错误");
    ErrorCode LOGIN_INFO_NOT_EXIST = new ErrorCode(112, "登录信息不存在");
    ErrorCode ERROR_CODE = new ErrorCode(113, "验证码错误");
    ErrorCode Code_NOT_SEND = new ErrorCode(114, "请发送验证码");


    //图片错误码
    ErrorCode PIC_ERROR = new ErrorCode(201, "图片上传失败");

    //活动的错误码
    ErrorCode CREATE_ACTIVITY_INFO_IS_EMPTY = new ErrorCode(301, "图片上传失败");
    ErrorCode ACTIVITY_USER_ERROR= new ErrorCode(302, "活动关联人员异常");
    ErrorCode ACTIVITY_PRIZE_ERROR= new ErrorCode(303, "活动关联奖品异常");
    ErrorCode USER_PRIZE_SET_ERROR= new ErrorCode(304, "活动关联的奖品或人员数量设置异常");
    ErrorCode ACTIVITY_PRIZE_TIERS_ERROR= new ErrorCode(305, "活动奖品等级设置错误");
    ErrorCode CACHE_ACTIVITY_ID_IS_EMPTY= new ErrorCode(306, "活动缓存id为空");
    ErrorCode CACHE_ACTIVITY_ID_ERROR= new ErrorCode(307, "活动缓存id为空");

    //抽奖错误码定义
    ErrorCode ACTIVITY_OR_PRIZE_IS_EMPTY= new ErrorCode(401, "活动或者奖品不存在");
    ErrorCode ACTIVITY_COMPLETED=new ErrorCode(402,"活动已完成");
    ErrorCode ACTIVITY_PRIZE_COMPLETED=new ErrorCode(403,"奖品已被抽取");
    ErrorCode WINNER_PRIZE_AMOUNT_ERROR=new ErrorCode(404,"中奖人数和奖品数量不一致");
    ErrorCode ACTIVITY_STATUS_CONVERT_ERROR=new ErrorCode(405,"活动状态转换失败");





}
